file(GLOB  FDM_SRC_FILES
    "*.f90"
)

set(sources-fdm-fpp 
)
fypp_preprocess("${sources-fdm-fpp}" sources-fdm-postfpp)

include_directories(${PROJECT_SOURCE_DIR}/include)

set(FDM_SRC_FILES ${FDM_SRC_FILES} CACHE STRING INTERNAL)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib/fdm)
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_SOURCE_DIR}/include/fdm)
add_library(fdm ${FDM_SRC_FILES} ${sources-fdm-postfpp})
target_link_libraries(fdm PkgConfig::PETSC PkgConfig::fortran_stdlib petsc_wrapper)
target_include_directories(fdm PUBLIC ${PROJECT_SOURCE_DIR}/include/fdm)
